Computer science Lesson Plan
Class: 6th to 8th, Lesson 35.1 : Functions (Pre-defined)

Purpose: Teach pre-defined functions. Students will learn the use of functions .

No. of Classes

2 classes for 20 students with 5 computers.

Materials Required

Computer, Internet connection.

Prior knowledge

Students should know about directions (Left, Right, forward and backward) and basic programming.

Exercises

Exercise:1



1. Use functions to help the harvester pick all the corns on the way to the pumpkin at the end.

No Image

Exercise:2



2. Use functions to help the harvester pick the corns on the way to the pumpkins.

No Image

Exercise:3



3. There are multiple pumpkins in each patch! Look carefully at the function definitions below to figure out how to use each one.

No Image

Exercise:4



4. Try your functions for a longer path.

No Image

Exercise:5



5. Try to solve this puzzle using less number of blocks.

No Image

Solutions




Teacher's Instruction
  1. Teachers should give their own creative activity to help Students understand pre-defined funtions.
  2. Teachers can explain the code.org 1st level video if the students are not able to understand either concept of pre-defined function or the content of the video. (In course-E- first video)
  3. Sign-in into the code.org before playing the game.